package ae.pcfc.cldos.online.common.delegate.provider;

import ae.pcfc.cldos.online.common.ConstantsCommon.Steps;
import ae.pcfc.cldos.online.common.delegate.BaseDelegate;
import ae.pcfc.cldos.online.common.delegate.NocLetterDelegate;
import ae.pcfc.cldos.online.common.exception.BadAppException;
import ae.pcfc.cldos.online.common.facade.NocLetterFacade;
import ae.pcfc.cldos.online.common.vo.AppSaveResponseVO;
import ae.pcfc.cldos.online.common.vo.UserVO;
import ae.pcfc.cldos.online.common.vo.nandl.NocLetterVO;

/**
 * 
 * @author arosa
 *
 */
public class NocLetterDelegateImpl extends BaseDelegate implements NocLetterDelegate {

	public NocLetterVO getNocLetterAppInfo(String appId, UserVO userVO, Steps step)
			throws BadAppException {
		return getServiceLocator().getFacadeService(NocLetterFacade.class).getNocLetterAppInfo(appId, userVO, step);
	}

	public AppSaveResponseVO submit(NocLetterVO nocLetterVO) throws Exception {
		return getServiceLocator().getFacadeService(NocLetterFacade.class).submit(nocLetterVO);
	}

	public AppSaveResponseVO reSubmit(NocLetterVO nocLetterVO, String appId)
			throws Exception {
		return getServiceLocator().getFacadeService(NocLetterFacade.class).reSubmit(nocLetterVO, appId);
	}

}
